#ifndef CHILDWND_H
#define CHILDWND_H

#include <QTextEdit>

class ChildWnd : public QTextEdit
{
    Q_OBJECT
public:
    ChildWnd();
    QString m_CurDocPath;
    void newDoc();
    QString getcurDocName();
    bool loadDoc(const QString& docName);
    void setCurDoc(const QString& docName);
    bool saveDoc();
    bool saveAsDoc();
private slots:
    void docBeModified();
private:
    bool m_bSaved;
    bool saveToFile(const QString &docName);
};

#endif // CHILDWND_H
